lsm_iscsi_chap_auth(3) | Libstoragemgmt C API Manual | lsm_iscsi_chap_auth(3) |
NAME¶
lsm_iscsi_chap_auth - Set iSCSI CHAP authentication.
SYNOPSIS¶
int lsm_iscsi_chap_auth (lsm_connect *conn, const char *init_id, const char *in_user, const char *in_password, const char *out_user, const char *out_password, lsm_flag flags);
ARGUMENTS¶
- conn
- Valid connection pointer
- init_id
- String. The iSCSI Initiator IQN.
- in_user
- String. The inbound user name
- in_password
- String. The inbound password
- out_user
- String. The outbound user name
- out_password
- String. The outbound password
- flags
- Reserved for future use, must be LSM_CLIENT_FLAG_RSVD.
VERSION¶
1.0
DESCRIPTION¶
Set the username password for iSCSI CHAP authentication, inbound and outbound.
RETURN¶
Error code as enumerated by 'lsm_error_number'.
* LSM_ERR_OK
On success.
* LSM_ERR_INVALID_ARGUMENT
When not a valid lsm_connect pointer or invalid flags.
* LSM_ERR_NO_SUPPORT
Not supported.
lsm_iscsi_chap_auth | May 2019 |